<template>
  <div class="wrapper">
    <WangEditor v-model="richText" :custom-config="customConfig" />

    <div class="previewr" cols="30" rows="10" v-html="richText" />
  </div>
</template>

<script>
import WangEditor from '@/components/wangEditor'
export default {
  components: {
    WangEditor
  },
  data() {
    return {
      richText: '',
      customConfig: {
        placeholder: '请输入产品描述',
        focus: false
      }

    }
  }
}
</script>

<style lang="scss" scoped>
.wrapper {
  padding: 30px;
  .previewr {
    margin: 30px 0;
  }
}
</style>
